﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace ImageUploaderComponent
{
public partial class PersonHeader : UserControl
    {
        public PersonHeader()
        {
            // Required to initialize variables
            InitializeComponent();
            SetBinding(DataContextWatcherProperty, new Binding());
        }

        public static readonly DependencyProperty DataContextWatcherProperty =
            DependencyProperty.Register("DataContextWatcher", 
                                        typeof (Object), typeof (PersonHeader),
                                        new PropertyMetadata(DataContextChanged));

        private static void DataContextChanged(object sender,
                                               DependencyPropertyChangedEventArgs e)
        {
            var personHeader = (PersonHeader) sender;
            // Update the control as needed
        }
       
}
}
